import http from "../utils/request"

//  新增
const addFamily = (data) => {
  return http.request({
    url: '/admin/family/add',
    method: 'post',
    data: data
  })
}

//  详情
const familyInfo = () => {
  return http.request({
    url: '/admin/family',
    method: 'get',
    data: {}
  })
}

//  修改
const updateFamily = (data) => {
  return http.request({
    url: '/admin/family/update',
    method: 'post',
    data: data
  })
}

export { addFamily, familyInfo, updateFamily }
